<?php
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.console.libs.templates.skel.views.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php __('Hệ Thống Quản Lý Thư Viện'); ?>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');
		echo $this->Html->css(array('cake.generic','menu','login','tabs'));
		//echo $this->Html->css('template'); 
        echo $this->Html->css('jquery.ui.core');
		echo $this->Html->css('jquery.ui.theme');
		echo $this->Html->css('jquery.ui.mouse');
		echo $this->Html->css('jquery.ui.button');
		echo $this->Html->css('jquery.ui.draggable');
		echo $this->Html->css('jquery.ui.position');
		echo $this->Html->css('jquery.ui.resizable');
		echo $this->Html->css('jquery.ui.dialog');
		echo $this->Html->css('jquery.effects.core');
		echo $this->Html->css('jquery.ui.datepicker');
		
		echo $this->Html->script('jquery');
        echo $this->Html->script('check');
		echo $this->Html->script('jquery.ui.core');
		echo $this->Html->script('jquery.ui.widget');
		echo $this->Html->script('jquery.ui.button');
		echo $this->Html->script('jquery.ui.position');
		echo $this->Html->script('jquery.ui.dialog');
		echo $this->Html->script('jquery.effects.core');
		echo $this->Html->script('jquery.ui.datepicker');
		echo $this->Html->script('numberformat');
		?>
		

		<?php         
		echo $scripts_for_layout;
		
	?>
	
</head>
<body>
	
	<div id="container">
        <div id="topheader">       
        </div>
        <div id="user">
            <?php echo $this->element('user_doc');?>
        </div>
        <div id="header">
            <div id="logo"></div>
            <div id="title">
                <h2>KHOA CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG</h2>
                <h1>HỆ THỐNG QUẢN LÝ THƯ VIỆN</h1>
            </div>
        </div>
		
		
		<div class="topMenu">
			<?php
			switch ($this->Session->read('cur_group'))
			{
				case 1:
						echo $this->element('docgia');
					break;
				case 2:
						echo $this->element('thuthu');
					break;
				case 3:
					echo $this->element('admin');
			} 
			?>
        </div>
		<div id="content">

			<?php echo $this->Session->flash(); ?>

			<?php echo $content_for_layout; ?>

		</div>
		<div id="footer">
			<p><b>Luận Văn Tốt Nghiệp Đại Học - Bộ Môn Hệ Thống Thông Tin</b><br />
            <p>Sinh viên thực hiện: Nguyễn Lê Hoàng Phương - LT10611</p>
		</div>
	</div>
	<?php echo $this->element('sql_dump'); ?>
	<?php echo $this->Js->writeBuffer();?>
</body>
</html>